package com.ymatou.iapi.godmch.service;

import com.ymatou.iapi.godmch.parameter.CsBaseVo;
import com.ymt.base.YmatouBaseCall;
import com.ymt.core.tool.FormatUtil;
import com.ymttest.utils.EnvSetup;
/**
*查看客服详情Call
*FreeMaker Template自动生成代码
*/
public class detailCSCall extends YmatouBaseCall{
	private static String opurl ="api/cs/detail";
	
	public detailCSCall() {
		super(EnvSetup.getSystemUrl("godmch_iapi"),opurl,"GET","PARAM");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Accept","text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
	public CsBaseVo getResult() {
		CsBaseVo CsBaseVo=null;
		try {
			CsBaseVo=(com.ymatou.iapi.godmch.parameter.CsBaseVo) FormatUtil.GSONToObject(getJsonObject().get("result").toString(),CsBaseVo.class);
		}catch (Exception e) {
			//nothing
		}
		return CsBaseVo;
	}
}